package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @Description:
 * @Version: V1.0
 */
public interface AdChannelService extends IService<AdChannel> {


    /**
     * 分页条件查询
     * @param dto
     * @return
     */
    public ResponseResult findByNameAndPage(ChannelDto dto);


    /**
     * 新增
     * @param adChannel
     * @return
     */
    public ResponseResult insert(AdChannel adChannel);

    /**
     * 修改频道及频道状态
     * @param adChannel
     * @return
     */
    public ResponseResult update(AdChannel adChannel);


    /**
     * 根据ID删除频道
     * @param id
     * @return
     */
    public ResponseResult delete(Integer id);

}
